package singleton_pattern;

/**
 * 三种实例创建
 */
public class Client {
    public static void main(String[] args) {
        SingleTon instance1 = SingleTon.getInstance();
        SingleTon2 instance2 = SingleTon2.getInstance();
        SingleTon3 instance3 = SingleTonEnum.INSTANCE.getInstance();

    }
}
